package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.AccounLoginInfo;
import com.zb.entity.ZjWorkReassign;
import com.zb.vo.WorkWaitCheckReassignVo;

import java.util.List;

/**
 * <p>
 * 工单改派表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-10-23
 */
public interface ZjWorkReassignService extends IService<ZjWorkReassign> {

    /**
     * 根据服[服务商ID]&[工单ID]获取改派信息
     * @param networkId 服务商ID
     * @param workId 工单ID
     * @return
     */
    ZjWorkReassign getByNetworkIdAndWorkId(Long networkId, Long workId);

    /**
     * 根据工单ID获取待审核改派服务商的工单
     * @param workId 工单ID
     * @return
     */
    ZjWorkReassign getWaitCheckWorkReassign(Long workId);

    /**
     * 根据服务商ID与工单ID获取服务商申请改派服务商待审核的工单
     * @param networkId 服务商ID
     * @param workIds 工单ID
     * @return
     */
    List<ZjWorkReassign> getWaitCheckWorkReassignByNetworkIdAndWorkIds(Long networkId, List<Long> workIds);
}
